Small refactoring of the parseAssignment method.