Recently I encountered a small issue in a static helper class that was full of static helper methods. After I finished dealing with the issue at hand and as part of following the Boy Scout rule (always leave the campground cleaner than you found it) I decided to refactor the class and the code using it.
More specifically to remove all the static modifiers and to inject this class whenever it was needed.
The refactoring was easy enough but things got a bit more interesting once I got to a class that was using one of the static helper methods. […]