Library of common routines

Are there guidelines for using the same routine in multiple different PsychoPy tasks? For example, I maintain several tasks for a lab, and I would like routines that display the same introduction text, the same text at the end of a task thanking the participant, the same fixation cross, and so on. I have been just copy-pasting the routines between tasks. I’ve considered creating a python module where these components are defined, then importing the module, but I like using Builder to order the routines and deal with all the fiddly bits of when to start the routine and how to save the data.

Any ideas would be appreciated!