Changes VariantDefinition -> VariantInfo and removes the child variants from the object so they are not cached as this causes problems.