Moved the commands to an external command executor.
A subcommand is executed by a method in the external class.