* The controller class, to generate a populated instance variable used by a view
* The helper class, to transform a general-purpose instance variable into the variable you need in your view
* As a free function or static method anywhere in lib/, particularly if you could conceivably re-use the code in another project.
The issue here is nominalizing all the logic in your code; besides creating unnecessary indirection (indirection is the coin of the realm; spend it wisely), it also creates One More Thing everyone has to remember to use your code: how to instantiate your object.
Just write functions. People have built and maintained things far more amazing than blog software in C using nothing but well-named functions. What Would Norvig Do?