[IMP] interval_remove_leaves everywhere instead of interval_remove_leaves_groups once