Add support for working with hierarchies with PageAggregate.