Change in vdsm[master]: factor out parts of setupNetworks for better readability