Moving the methods that implement the commands to a different class for testing purposes