Rewrite the item ids to make better use of Ruby's power with hashes.