Move some code from views to helpers.
A lot of tests stuff includes ember.js researches.