Yes there were such factories but very few.
I think my friend should be one of the last constructor at that scale here in Macedonia-Greece who manage to survive
As you mention they recondition second hand machines.