Refactor "Keep Screen On" preference settings check into new method.