insights: Refactor code insights deserialization out of the usagestats package
Created by: coury-clark
Currently the pings package (usagestats) has deserialization code for insights that are stored in Sourcegraph settings. This should be refactored so that usagestats as well as the code insights backend packages can reuse this.