Refactor MongoNamespace into two classes: DatabaseNamespace and CollectionNamespace.