simplify Eraser#cleanup_indices