Reducing complexity of the parse and parseArgument methods