LatteExtension: distinguished setClass + setFactory