Generic quantization