Even if you replace every board in the ship, it's still constrained by its original design. These software systems could be similar in that even if every line of code were replaced, architectural patterns, file formats, etc. that were created for the original system will continue to influence the current design.