Move config generation to more general section.