Add deprecation to 2.99 to instruct users to use `infer_spec_type_from_file_location!` when upgrading

Potential implementation for #1001