Move configuration to a template file