Remove duplicate instructions