Refactor from Dictionary to CheckboxItem.