Remove duplication variables and subcommands