Made preparations for a spatial tree refactoring.