MAINT remove deprecated code from trees and forests