Improved method for the experimental determination of in-medium effects from heavy-ion collisions. (14th September 2020)