perf(hooks): Remove extra function call

This patch modifies the backwards-compat resource shim so that
it is simply assigned directly to the hook when possible, rather
than creating a noop passthrough.