Fixes https://gitlab.com/kicad/code/kicad/issues/6764
This is in preparation for implementing more association actions and an undo/redo system.