Refactored all subcommands as classes with stub generators