General refactoring to remove global state
Refactor to remove global config state
Refactor to remove saved ShowTree global state
Refactor to remove scheduler global object
You guessed it, more refactoring away global state