Extract redis stuff to own classes.