Remove swapIfPossible helper method