Factor out second type parameter of QueryDslImpl.