Add logic to inactivate the email hook on a project