Move MIME-Types detector to configuration.