Extract infer file type code into own file.
Enable rspec/rails to be loaded via rspec/rails/without_filetype_infer to allow opt-out of that behaviour.