Toss redundant commands.