Resetting user data for change of ownership

In the event of a change of ownership, user data and system settings should be restored to factory settings.