Cut the soil pipe back by the same amount
I’d just get a new push button, seems like a lot of messing just for a broken button, but your choice. As for getting it back to the wall, I’d go with the solid soil pipe connections, just because the previous one leaked? - might not have been installed correctly.
If you need to find a tradesperson to get your job done, please try our local search below, or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Are you a trade or supplier? You can create your listing free at DIYnot Local