Improve analysis deletion on research deletion.