Replace `is instance or` with a tuple of types.