Refactor item IDs into an Identifier class.