Refactor how preference uri is passed into userpreferenceserver.js