Separated the code for web hooks into a new module