The mediawiki.rcfilters.filters.dm resource loader module is only used in two places: QUnitTestResources, and as a dependency for mediawiki.rcfilters.filters.ui. I suggest that the dm module be merged with the ui module, and the ui module be used in the QUnit test instead.
Global search reveals no uses of the mediawiki.rcfilters.filters.ui module on-wiki