factory: revert name/class comparison.