[red-knot] Cleanup handling of InstanceType
s in a couple of places
#35188
Loading
InstanceType
s in a couple of places
#35188