mruby: extract mruby related code to another file