A small refactoring in Lua/BOX bindings.