LPS-44236 Initial cleanup: reorganize redundant code
LPS-44236 We nowhere use the returned value, plus returning something unchanged doesn't really make sense
LPS-44236 Extract group independent part of PermissionCheckerBag into a new ancestor class
LPS-44236 Apply
LPS-44236 Reduce complexity from O(N) to O(1)