Remove command duplicates