Importing file from command handler

Using version 9.1.1.

I’m trying to create a task that imports image files. The docs say to use \Concrete\Core\File\Importer (importing New Files) but this is deprecated. It works, but it seems like a bad idea to use deprecated classes. So how do I get a copy of Concrete\Core\File\Import\FileImporter from inside a CommandHandler? Also, why do the docs tell you to use a deprecated class?

I sent your suggestion about using depreciated classes in the importing new files page for an update.