Remove code duplication in view helper

detectInstance is literally just an instanceof. I'd like to use `isView` branding though.