Moved preferences to its own model.