This pushes config loading out of business logic so it can be injected
in tests, without mocking. Also makes it clearer when config is loaded
in main functions, what's being loaded, and where it's going.
I have more I want to do in this direction, but I want to go in digestible chunks, and I think I'm at an intermediate point where it's a bit cleaner in most places, a little confusing in a couple places I haven't gotten to yet, but I believe everything still functions.
This pushes config loading out of business logic so it can be injected in tests, without mocking. Also makes it clearer when config is loaded in main functions, what's being loaded, and where it's going.
I have more I want to do in this direction, but I want to go in digestible chunks, and I think I'm at an intermediate point where it's a bit cleaner in most places, a little confusing in a couple places I haven't gotten to yet, but I believe everything still functions.