Small cleanups in Device
Declare missingModuleError before it's used
Remove unused param for #start callback
Clean up declaration of default work block