VE-1460: Prepare MWTemplateModel and MWTemplateDialog for extensibility