Description
This is analogous to SPARK-13526, which moved some things into `SessionState`. After this issue we'll have an analogous `PersistentState` that groups things to be shared across sessions. This will simplify the constructors of the contexts significantly by allowing us to pass fewer things into the contexts.