Named Locations

Is it possible to have named locations?? So for example:

path /foo /bar/ /baz = @folder_set

location @folder_set {

}

This feature would help tremendously, because I have about 300 sites I
need to load balance, and about half will need to go to one set of
servers and the other half will go to the other set of servers. And I
want to avoid 300 “location” rules that are equivalent.

-Henry