Implement split.
Tidy up.
Move split and Split from ch to ci.