MongoStore: Refactor to avoid to long methods