Refactor item IDs into an ID class.