Nicer interface to set constraint scope.