Quitting Caffeine

How did you guys quit drinking coffee during pregnancy? I only drink about half a cup to keep the headaches away, but I really wanna stop in total. Just scared of the headaches.