In LoopUnswitch, move shared code to LoopUtils. It is related to https://reviews.llvm.org/D99354
Looks like a very small change to me. If you're confident, just go ahead and commit this without review. If you want to a second opinion, we can always look at it in a review.