Cleaning up templates.