remove_extraneous_data