Moved all domain-specific code to separate class FolderInventory