See https://github.com/denoland/deno/pull/16332#discussion_r1000494231 -- maybe it's a simple fix of resolving the referrer kind if necessary right there.