Split tree handling utilities to new class