Unify id extraction, bunch of other stuff common to most item types.