Move this code in Type#union method