[Refactor] Separate out a module for filtering CUs (mod_filterCUs) + related refactoring