Ensure network context is not set twice during deployment.