I think that can be minimized by getting all your water about 5 hours before bedtime, or so.
Best advice! That is exactly what I do. Usually do not need to pee until after 6AM. Drinking enough water during day minimized leg cramps in the morning. Another benefit of good hydration is better blood pressure readings. I focus on eating high water content fruits & veggies for hydration, such as cucumbers, watermelon, cantaloupes, zucchini. I am 85.5 age and have zero medical issues. Did I mention aerobic walk for 25 minutes every day with 1 lb wrist weights? That is the best thing I do for myself.