Indeed, all of the above.
It's impossible to just say "Here is the original file, here is the new file, port everything over" and think that'll be enough.
Maybe making a plan for each file and specifically tell it to port each specific function over would work, but at that point you're really just making a literal translation from one language to the other.