OFNumber: Refactor to reduce code size