Testing UserDefaults
As with all dependencies, we should reduce UserDefaults to an abstract
protocol, inject it into the classes that require it, and thereby decouple
ourselves from implementation details and increase the testability of our
code by introducing seams.