Minor code cleanup for graph GC.