Refactor parent from Thing to Item class

This and the previous commit reduces the memory footprint significantly.