Move code into __processInvitations()