This refactors much of the code to prep everything for the undo system. This is the first part of the change which should make the second part much easier to understand.
Pre-PR checklist
[x] Ran npm run serve and:
[x] Checked basic functionality
[x] Checked that errors are handled
[x] Ran npm run lint
[x] Ran npm run test:unit
[x] Ran npm run test:e2e and ran relevant tests
[x] Attached reviewers to PR and pinged on Slack/email
Description
This refactors much of the code to prep everything for the undo system. This is the first part of the change which should make the second part much easier to understand.
Pre-PR checklist
npm run serve
and:npm run lint
npm run test:unit
npm run test:e2e
and ran relevant testsScreenshots/GIFs
[Attach screenshots if making a visible change!]