Heuristic algorithm was moved to InventoryItemFactory a while ago so cleaning up method signature and putting logging into factory method.