Trims the trees list.