Convert preference store to a singleton.