afm-unit.conf: Refactor its generation