refactoring Entree for storing key