Refactoring WordReference code for clarity.