I'd still warn as the user is using an unnecessary deprecated key, duplicating it with the same value as the preferred key. We could presumably just drop this if-else to only have the code block of the else?