Perhaps all you need is to divide up your functions into different "packages" and have different main scripts that "import" the appropriate packages and call the appropriate functions with different arguments.
You can import a file of functions into your ASH script by putting directives like:
import <filename>;
at the top of your script. Yes, the "<" and ">" are necessary.