Refactor destructors.