Nicely refactored and injected persistence service inside the oauth service.