More cleanup in refine_smooth