Move logic to ``Marker::addMarker()``