The AA way was described in The Power of Habit as one of the examples of successful habit change. Basically: keep the habit's cue(e.g. feeling depressesed) and the reward(social interaction) but replace the bad habit(drinking) with a better one(meeting with the sponsor).