Impact of magnetic electron scattering on spectroscopic factors