Migrated Preferences key list generation to OCaml