Refactoring: Extract loading from/Saving into shared preferences as new methods.