Move code out of indiv. model classes, into ConstraintModel base class