[phylo] small refactorings to make `toSeriesOfClustering` more readable

parent 04c0505c
Pipeline #7843 passed with stages
in 55 minutes and 27 seconds