Factor out preference-in-storage check to overridable method.

Change-Id: I3039a2c7185bcb5594f9718252c5d37e40f9bda8