Factor out updateMeasure from record editing