For me, I just had to stop. Moderation works for people who already find it easy to take it or leave it. If you can have just one drink, and then switch to tea, you're probably good at moderating and you can do that. If you aren't that sort of person, it's a lot harder to continue drinking but just drink less. If you don't want to stop entirely, you might decide you are only going to drink 1 day per week, say, and stick to that. If you can't, then stop altogether, at least for a time to see how you feel.
For me, it was filling the time I'd spend drinking with other things. So I went for walks, or swims, or did whatever that kept me occupied and distracted. My husband had the kids and I got on with taking care of myself. I replaced alcohol with other lovely drinks, which is especially great when it's hot like it is at the moment. And someone taught me to use the tool of 'playing it forward' if I felt I wanted a drink. So having a drink in the immediate term seems great and fun, but you have to wind the tape forward to later in the evening when you'll be filled with regret for drinking too much or the next morning when you'll feel it, and think about that. The fun is very short lived, but the misery is lasting, so that was enough to put me off.
If you want to stop, even for a time, I'd recommend doing some sort of 30 day or 90 day thing. There are lots of supported ones. I think This Naked Mind does one, as does Bee Sober. It doesn't mean you have to stop drinking forever, but it will give you enough of a break, with support, to think about things and feel better.