Moved DiscriminatedUnion to Common.