[M] Change in osmo-mgw[master]: mgw: Move endpoint/conn updating logic to helper function