Remove redundant call through .pairs().
Simplify save() by converting constraints into triggers