It's perfectly feasible to have small bash scripts, library functions of sorts, and source them in the script you want to use them in.