Move preferences access to ContactPreferences.
Catch errors when data format is not valid.