Also, if you're just comparing Tree objects in an object store against each other, please factor out the code that returns the dictionary.