Move plugin repository to LegacyPlugin from HandlerPlugin

We use HandlerPlugin as a plugin that does only "handle". We don't use
it for "adapt", "collect" and "distribute".