Refactoring inventory.