Refactor of ThreePartSplitter.