refactor ResourceGroupManager#find_in_groups