Strip out templates to a function