pub(crate) fn handle_variant(variant: &Variant) -> RNodeVariant