Helper method for removing all constraints.