The effect of environment on the mass assembly history of the Milky Way and M31 - Ewoud Wempe; Amina Helmi; Simon D. M. White; Jens Jasche; Guilhem Lavaux (2025)