Refactor Redis installation