Factor out duplicated pstar and qstar computation.
Factor out duplicated pstar and qstar computation.

google/rappor,google/rappor,google/rappor,google/rappor,google/rappor,google/rappor,google/rappor,google/rappor