What's the term for only doing something because you've been doing it a long time even though you may not enjoy the activity anymore?

What's the word for only doing something because you've been doing it a long time, even though you may not enjoy the activity anymore?


Sounds like a rut to me. From Lexico:

rut: A habit or pattern of behavior that has become dull and unproductive but is hard to change.

Example:

I've been in a rut (or stuck in a rut or caught in a rut) for the last ten years, but I can't figure out how to get out of it. My situation's driving me insane.