Move 'split' functionality to Utils