Rather than drink less quantity (I don't wanna drink a quarter cup of coffee!), the easiest way I've found is to gradually titrate the coffee with decaf. That way you're not disrupting the ritual while you break the chemical addiction. The same method (gradually turning down the dose, while still indulging the ritual) has seen excellent results for nicotine addiction by using a vape.
source: i've quit coffee numerous times, just drink less each day, it's super easy.