Replace parents by ancestor(n)