Move left/right hand split functions to a separate file