Use lookupFactory to find the view class

From discussion in #2930