I should have used the search function - it turns out someone has already looked into how to modify the G-code. Precisely because of this problem. You only need to modify the code once in the slicer - edit the “start gcode” - and it will then be applied to all future projects.