Make metadata removal the last step of deployment when repairing instance networking