Move _renderGroups to Painter