Cleaning templates.