Clean up iterator struct