Clean up templates.