Consolidate EncodeVarInt