Currently the ScopedCollectionMetadata directly reaches in the internals of the MetadataManager, which makes it difficult to use these components separately. They should be separated through an interface.
- is depended on by
SERVER-29908 Libraries db/s/sharding and db/query/query are directly cyclic
SERVER-32198 Missing collection metadata on the shard implies both UNSHARDED and "metadata not loaded yet"