Separate a subroutine in GroupLookup.

Just to make it more convenient to test calling it from open as well. (But note that this branch does not do that.)