Extract intent, prefs and state keys into constants