Remove legacy templating