Refactor TemplateMixin symbol resolution