Remove unused imports from AddCommand.