Move sanitizing to preprocess_mapping_file