Refactored histograms update check