Yes, I'm thinking about making a phpbb_text_formatter class to replace the set of functions. It should make testing much easier. I don't know what "the container" is though, can you post a link to whatever resource you have available please? Doc/API/source/what have you.

I'm thinking about using an autoloader to load the generated renderer too, because I don't like the way it is know.