Get (something) out of one’s system

To get rid of the desire to do something.

I went on a short holiday so that I could get travelling out of my system.