WebIDL enum cleanup