Quitting cold turkey is bad. The only way I successfully did it was become very aware, used the same cup for getting it and cut down 1 cup a day every week until there were no more cups. I didn't get any headaches. When I quit cold turkey massive headaches for hours that required aspirin to function as a coder.