Reduce duplication in `Commits::{CherryPickService,RevertService}`
What does this MR do?
This factorize similar code from Commits::{CherryPickService,RevertService}
.
Why was this MR needed?
To get rid of flay offense.
Does this MR meet the acceptance criteria?
- Tests
-
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes #22203 (closed)