refactor regression trees for intent