How to restore OS X drive to factory defaults? I turned off the Core Storage volume manager on my OS X partition (i.e. diskutil cs revert). Now my Recovery HD displays in Disk Utility and in Startup Manager. 

I don't like this and would like to undo this change. For example, I can no longer boot from the recovery disk by holding Command+R at power on, instead it boots into Internet Recovery Mode.

I tried diskutil cs convert to change it back but I still see the Recovery HD everywhere.

Is there a way to completely restore the disk (and the partition CoreStorage settings, really the entire disk) to factory defaults?
I booted into Internet Recovery Mode, erased the entire hard drive, and re-installed Mac OS X. This will reinstall the OS that came with the computer, recreate EFI and Recovery Mode partitions, and set CoreStorage volumes as if everything is set from factory defaults. 

After this Recovery Mode works as expected.