We have two copy of the makeUnshardedCollectionsOnSpecificShardAggregation function and the code seems identical.
- src/mongo/db/global_catalog/ddl/sharding_catalog_manager_shard_operations.cpp
- src/mongo/db/topology/topology_change_helpers.cpp
The goal of this ticket is to unify the two implementation.