Refactor html into partials.