[tor-commits] [tor/master] routerlist: Split the node checks into their own function