MOB-2297 Don't update categories without changes

line 193 - could this part of logic be abstracted to separate function ?