Bad habits are more dangerous than good ones, since they are self reinforcing.
A toxic work environment can be a source of stress. This stress can cause us to eat unhealthy. Unhealthy eating can affect our sleep, and thereby slash our productivity. Bad productivity can lead to more stress at work. And so it spirals downward.
When cultivating a garden, it helps to clear out the weeds first. To improve your habits, ruthlessly eliminate the bad ones so that you create the right conditions for the good ones to grow.