Convert `splitBranch` to Cadence.

See #375.