Rework pageTree snippet definition