An action may be severed, and actions pending in the same court may be consolidated, as an aid to convenience, whenever it can be done without prejudice to a substantial right.