so that we can remove assumptions of what should happen when the repaint container is nullptr and we can pass it around as reference.