Add .constraints to Record::Collection

It's time to refactor. This stuff is duplicated too many places and I
don't think I want a module here.