Get rid of `applyTemplates` in favor of `applyBase`