A function for working with external constraints in bulk.