Refactor to use Handlebars partials.