Encapsulate mrb state in the returned object