So AI can build everything except the factory itself? Sounds like there's still a need for human labor.
And if the opposite is true and AI can build the factory, then it's not going to "cost tens of billions of dollars to build"; the factory will be just as cheap as the goods its producing. Literally everyone could have their own factory.