extract out (nearly) shared pet_expr_access_from_id