My advice is to build a function that allows you to change that. How to fix Pancakeswap's Router address in Safemoon