First pass at refactoring to use DI model MetaTask and FileType.