Quenching of the spin-dependent scattering of weakly interacting massive particles on heavy nuclei