removing unnecessary references to table metatable