HELIX-485: Remove controller leader election duplicate code