Yep 3DGS is not designed as modules, you'll have to re think all programming core.
We don't need multiple actions, ust the possibility to choose two actions like you did :
- TPS
- FPS
and each having one loop only.
Choosing some action template is enought and already some modular creation of a game.