An action may be severed and actions may be consolidated, in the discretion of the court, whenever it can be done without prejudice to a substantial right.

SOURCE: CCP § 1048.