We could maybe have the DEFAULT_PREFERENCES object in it's own file and include here and in the viewer.