get_item_group
One hash table lookup is enough, and this is even easier for the JIT to inline, optimize, etc.