in PHP, in production, I have seen a project where controllers always call the same function depending on some parameters.
Depending on the parameter, a different file is included, then the "doit()" function is called.
I can't tell you how much I hated debugging that thing!