Moved mime types map into extension validator.