Simply refactoring on subcommand validation.