Function flattenPropertyUnion