[Webhooks] Mini-refactor.