Preferences: Use Config instead of globals

Change-Id: Iab8725ded4da532a3072fb68e3060bd8f8ddf30a