Move table conversion functions out of object literal