Funny enough San Francisco Public Utilities coordinates with SF Streets to replace water/sewer lines prior to planned repaving work specifically to avoid this problem. They are clear that need and scheduling sometimes don't allow it but wherever possible they do.