Encapsulating away our mutable compiler state