Common code for app e-comet plugins.