move subject_referral_helper to classes