[TASK] Remove usages of getTemplateVariableContainer