Extra inferring file type into a method.
Turn off spec type from file location by default.