After I dry'd this up from the other methods I thought it could be useful to expose it directly for contexts where afterEach may not be available or if I wanted to restore the value manually in the middle of a test.