Refactor render ifcfg