Remove duplicate commands