FileTypeImpl: refactoring