Exporting message handling code to separate message handlers.