Remove device plugin from add_platform_hook.