Put the ScriptCallStackFactory methods inside the ScriptState.