Court Trends and How to Avoid losing on Summary Judgment

In California at least, the current trend is that courts are becoming more willing than ever to grant Summary Judgment and end a Plaintiff's right to have her case heard by a Jury. How can trial attorneys stop this from happening to their clients?