[hibernate-issues] [JIRA] (OGM-848) Refactor MongoDBDatastoreProvider#extractDatabase