Implement partials for cleaning up double template code