Refactor to item_lookup
Refactor to item_lookup

- Removed duplicate code
- Return raw pointer to avoid problems with borrow checker

PistonDevelopers/dynamo,PistonDevelopers/dyon,PistonDevelopers/dyon,PistonDevelopers/dyon