Syntax Error Free mongoose refactoring.