Cal. Sts. & High. Code § 5413
If the court finds an unnecessary number of actions have been brought, where the parties are identical, it may allow the costs of one action only.