Only generate _OID helper if necessary.