Modulize all plugin code for proper packaging.