As I've said, this `Constraints` object is a layer of complexity we don't need. Just keep it stored as a list, and do the work in a private method of `Layer`.