Remove constrains whose function is duplicated