Move plugin-specific stuff to its own file

Signed-off-by: Ian Macalinao <ian@giza.us>