Extract message system to plugin.