Simplify mime type inference

These case statements were duplicated and didn't provide anything
useful over the provided MIME::Types module.