Use the infer_spec_type_from_file_location