Move the test result.cmd_line? to the if statement of smart-incapable devices
Refactored wipe_device.rb into 3 separate files