Fix method comments in ConstraintFactory