The factories won't be obsolete, even if the chips are.
The fabs for current nodes will be obsoleted by newer nodes.