Clear reference to validator factory on undeploy.