Code duplication in Qa subcommands