[FIX JENKINS-25769] Use root build on a promotion build

Move the utility method to retrieve root build of promotion builds in `Utility` and use it in `RebaseBuilder`.