SHR-783: Referral parsing