Turn ES6TemplatePreprocessor into generic ES6TemplatePreprocessor