Extract mroonga_command code into udf/