Ok, but now getting rid of your legacy Cobol system becomes 10x cheaper, hence replacing it becomes feasible. Deploying an industrial robot with sensors to do specialized complicated thing x is now only a few skilled queries away and costing you only one workday. Writing software to replace manual process which n many workers do and would lead to savings but not enough to justify a normal programmer writing the code...
if price of code goes down, short term fixes become worth the money.