I don't see how it's possible to infer what's an upgrade of something else, since it's entirely based on the function of things and arguably based on thematics.
The boiler and heat exchanger technically do different jobs due to their outputs, but it makes sense to have that as the upgrade path since nuclear power is the logical upgrade to steam power. This is a purely thematic upgrade due to the different jobs.
The mining drill and inserter upgrades are both pre-tech, so you won't be able to infer upgrades on tech alone.
There also needs to be consideration for how this impacts building a base. Right now I'm trying it out as-is to see what the impact of needing raw stone as a factory input is, since stone furnaces are needed for both electric mining drills and steel furnaces (production science).
I would also potentially need to add in new intermediate conversions, similar to stone and steel, depending on what mods are being used.