Refactored InputParser.
Extracted command creation to a new CommandFactory class.
Refactored InputParser unit tests to use a CommandFactory mock and test InputParser -> CommandFactory.
Created unit tests for the CommandFactory.