To lose the habit / To get out of the habit
Describes no longer doing something you used to do regularly. The opposite is coger la costumbre or acostumbrarse.
I've lost the habit of reading before bed.
When you stop practising, you lose the habit quickly.
—Don't you do it any more? —No, I got out of the habit.