Move preferences JSON to its own file.