root: move the remote guessing logic in its own function
root: move the remote guessing logic in its own function

Cosmetic patch moving the remote guessing logic in its own function for
readability (and enabling future changes to the logic). This patch
shouldn't change lab's behaviour in any way.

Signed-off-by: Antoine Tenart <0c5227180ccabac0e4daf539795472a5a2452293@kernel.org>

zaquestion/lab,zaquestion/lab