[Refactoring] Ensure that refactorings are erased from memory on
dispose.