Add transformToOneToOne method to tree