Refactoring a MongoDB repository layout