Refactoring. Replacing getKey() with get().