cvs: Use K_PLUGIN_FACTORY_WITH_JSON properly

Authored by kfunk on Nov 22 2017, 8:37 PM.