Remove duplicate instructions.