Only recommend expanding union types.

Closes PR14166.