Move used code from openflowplugin to impl