I remember a few units of programs, which from version to version were patched by search&replace.
And there it was maked especially, imho.
In the simplest case the universal loader helps. Such as created with
RPP v.1.5.1.006p [(c)2000-2018].
It's the
script-based 32-bit loaders generator with
search_&_replace and with
selecting_of_file_to_load options.