Cater to your strengths.

There may be room to shape your habit while still getting the same benefits. For example, if you want to take an online class but have trouble sitting still, find an audio version and listen on a walk.