Remove hardcoded view class.

Fixes #3901