Remove some code duplication in InventoryState.
Merge pull request #171 from rohit-n/duplication

Remove some code duplication in InventoryState.