Cleanup templates.