Refactoring of inventory and item classes.