Pivoting Between Domains and Forests