Refactoring inventory section