This sounds great until one of your other functions calls that function.
You're just describing dependency injection, but if you say that, people won't want to listen cause doing that all the time sucks.