Refactor handling of the 'request' event