Remove code duplication in view helper

Branding allows using simple views that are plain javascript objects (aka not inheriting from Ember.View).