Replace bad typealias.

Was cleaner to define two methods rather than a complicated typealias of
parametric Unions.