Text this: Improving the Determination of Supernova Cosmological Redshifts by Using Galaxy Groups