Clean up old templates