Split blend tree code into files