Issue #2287583: Refactor the code for getting grouped visitor contexts for use in a select list