IP is all you have why give it away?
Your IP is all you have NEVER train your replacement.
A company i worked for as feelance no longer required mine and 2 others services as "they dont need us anymore" they now employ 19 permies to do the work and they are failing
, they also use offshore and thats not working either.
If you think a professional is expensive, try using an amateur