Refactor Mimetypes