Apologies for the cross post without links, should have thought of that! :-)
how do you mean about 23 merges? I did wonder about filtering on location but I didn't see any way to get the list of locations (they're always different) into an array or something to then loop through?