If you look back to the recent history you’ll find many examples when technical progress leaves millions of people unemployed. Remember machines made needless human work in England in 18-19 centuries? I believe those people could not even believe they can become redundant because of machines as many employed in IT industry that are craftsmen rather than engineers.
I believe one day software factories will start their march. You can say software development is like an art. And I will agree with you. I do not think factories will rotate people everywhere. But it will look like Toyota industry with human-constructors only on the top of production process.
Maybe I’m mistaken. Who knows.