Refactor issues webhook handler