Remove manual mimetype checking.