Abstracted some information from views into partials.