Code Refactoring TemplatePlatformService