Remove duplicated and unused code.

This feature has been moved to StringTemplate and doesn't need to exist
here as well.