[PATCH 03/20] network: Move decision on dnsmasq need into a separate function