Package the NativeGen state up into a named type