It used to be that when a new mother found herself awake with a crying baby at 3 a.m., there was little she could do but suck it up and soldier on.