Extract finding a page object class to the ClassNameResolver.