Refactoring policy precondition functions to use resource-id header value