I enjoy a couple of cups of coffee a day for its own sake. My understanding is that you normalize to the caffeine so if you enjoy coffee just drink roughly the same amount every day. Giving it up is unlikely to change your sleep much unless you're consuming a silly amount (which some people do).
And, as I mentioned to my wife earlier this week, if I feel stressed or something has upset me then just the motions of making coffee or tea is relaxing.