Revert "Slave is now using network's SetupMaster function. Broken build fixed"

This reverts commit 7b9f335d48bfbd7a6ffe4d32cd7b4ce237a77340.