Remove nested keys to fix issues with key mirror