Rename StateFactory -> PythianState to avoid confusion