You could move this into `XModuleMixin`, and then it would be available on XModules, XModuleDescriptors, and XBlocks in the LMS/Studio.