Fixes #10014 https://gitlab.com/kicad/code/kicad/issues/10014
This allows it to be shared by both the PCB editor properties dialog and the fpeditor dialog.