Refactor RefResolver to use 'resolving' method as a context manager
which changes the scope and returns referenced schema