Both of those scenarios fall under the "a LOT of careful consideration and planning" aspect.
I have a client who runs a roofing tile manufacturing plant and since COVID, has been doing so from home via some SCADA software I helped him with. In his plant there are still a number of workers, mostly forklift drivers and material handlers for both incoming raw materials and finished product. There are a LOT of conveyors and all of them have rope pulls in case someone falls onto one, the mixers and presses have all kinds of guards, safety relays and sensors associated with them, the kilns all have safety releases on the inside of the doors, there are cameras everywhere, etc. etc. etc. When COVID hit, he shut down for almost a month to get everything set up correctly, including training for the remaining staff, before reopening.