refactor: Rewrite a gnarly nested loop (#1755)
refactor: Rewrite a gnarly nested loop (#1755)

This also renames the `scopes` property to `interceptors`, which is more appropriate since it holds instances of `Interceptor`.
node-nock/nock