Refactor Key#initialize.