I've worked on crap like that far too many times.
Or systems with open J boxes, a rats nest of single single insulated wiring everywhere, BP connectors....
Thankfully I don't see it too often these days.
The best was a freezer cabinet made in the far East that used the earth wire as a switching wire from the t/stat.
It came like that from the factory.
Yes, it was an eBay special.

