I don't think invoking `Thread.current[:environment]` will cause global side effects by itself, but doing assignment of that value definitely will. I'll note that.