Internalize logic for determining primary group as the new getPlayerPrimaryGroup() method in ZPermissionsService.