Moving my poor cat again.

My cat is 11 years old. A few years ago I took her to college with me and it was a disaster. She peed on my bed multiple times over the span of several days. I ended up taking her home at Christmas and leaving her there. But now it is time for me to move into my own apartment and I really do want to have her with me again. One big problem - she had a bad experience recently when my (soon to be ex) spouse put scented litter into her box. Now she's peeing and pooping outside the box even though it has had a deep clean.

So do I move her with the caveat I leave her in a room that doesn't have my bed for a few days so that she can calm down or do I leave her behind? She has bonded somewhat with spouse but I will be so sad. In the end I want what is best for her. If I leave her I will get her a new box and change its location.