simplify group scopes; move in_location to Profile

removed some corner cases that were not used anymore

in_location was not used and also pretty obviously in the wrong place.
Rewrote it in profile. It's not used anyway but one of the first things
we might bring back.