Moved dispatch source event handler code into its own method.