Refactors public-facing template.