Extract WakefulBroadcastReceiver code into BaseBroadcastReceiver