The intent here is that the when changing the URL, we invalidate the current globals instance, to clear the cache of the runtime abilities. Can you suggest a better way for doing this?