Dirac versus reduced quantization: a geometrical approach