Reduce the number of calls made to `split` and `slice` while computing version parts by deconstructing the result. PR Close #41208
Reduce the number of calls made to `split` and `slice` while computing version parts by deconstructing the result. PR Close #41208