Make zoom computation more compact.