Refactoring Duplicate schema MongoDb Error on Invoice object