Extracted GroupsManager from ContactsManager.