Reduce parseStatement complexity by refactoring out assignment and call