Refactor Views with Partials and Move Code to Model from Controller