Convert equality constraints to be n-way.