Make generic config writer