Refactoring: memoize finding the topmost model class so we can use it as an expression (without a temp variable).