Hoard a copy of your work. Even if your new overlords are gutting and replacing it, ot might be useful elsewhere one day.
Source: Similar situation once upon a time. I am currently using on a daily basis what was once replaced in a different company.
True. In my particular case it’s not an issue (because of a long and boring story I can’tbe arsed getting into), but shielding oneself as well as the employer from legal liability is important.