Cleaning code in config template