Collect batch spec page declarations into shared context