How does the InvitationModel manage possible duplicated pairs both inside the in- and out-domain data?