Remove duplicated constraints