When parties have been joined under Section 378 or 379, the court may make such orders as may appear just to prevent any party from being embarrassed, delayed, or put to undue expense, and may order separate trials or make such other order as the interests of justice may require.
Ca. Civ. Proc. Code § 379.5