Extract MongoDB adapters into separate package