Refactor: CMS_TEMPLATES is locally initialized.