[AS7-6582] Clear reference to validator factory on undeploy.