Clean up in Painter.