Warn user when def shadows existing referral. Fixes #27.