Move quantization APIs to library domain