LDEV-2782: Move preceding lesson modification to service as all previous service calls are read-only, implying the save will be read-only too and leading to exceptions.
LDEV-3708: Unable to start a single activity lesson for a tool deployed after initial run as it was trying to find the learning_activity via the toolId when it should have been using the libraryId