Split out most of the meat of Entity::apply_item_id() to Entity::apply_item_action()