MDL-48640 report_configchanges: Remove duplicated code