Refactors handling of default MimeTypes.