Fix AppIdFactory usage.