Refactoring GroupContact search