Merge "Factor out telephony permission checks into a helper class."