Quantize sites. Fixes #1578.