Extracted hardcoded preference keys.

Signed-off-by: Mattias Markehed <ibaton@3hou.se> (github: ibaton)