Removing duplication in models.
Moving duplications in views to partials.