Refactoring: create JawboneSleepAnalyzer class with all existing methods (for better reuse). Have a separate method that fetches sleep data.