WIP multipass tree factoring