Change enum declaration so it works better in Swift.