Hi Rob..you might well find that once you remove the WC the existing pan connector will wriggle free when forced. Once its out, plug the foul outlet and chip away mortar CAREFULLY, or drill into it to break it up, as not to damage erthenware pipe (unless its plastic.)
Be aware that the WC you...