Welcome to the OptoForums! Glad you see you are finding ways to share code, well done–I’m guessing you have some programming experience in your background? And yes, that’s what subroutines are for (and how we build our “integration kits” which I sometimes describe as a library of commands).
However, you can also import/export charts, and import/export I/O Units, which is handy sometimes, and PAC Control will match the variables being imported.
Can you tell us a little more about your application, for example, which parts are similar between the different strategies?