Maybe there could be server-configurable settings to enforce "by-type" replacement, so that only "like" blocks are eligible to be replaced. (E.g. Hull to Hull, Standard to Standard, Advanced to Advanced, metal mesh to biological plant, weapon to weapon, etc.
I am imagining a long list of...