Removing extra constraints for the unary encoding