Maybe use `ToDictionary`?