Get rid of SharedTree

As a result of discussion, get rid of SharedTrees