Move get_changed_data to helpers