Helper for creating many constraints.