Clean-up templates.