Laws of Nature as Constraints