Create TypeExtractor class to figure out mime type