Remove duplicated instructions