You can rename the payload during pattern matching in the calling code:
switch getBeeper(myDeviceType) { case .success(let isEnabled): if isEnabled { } else { } case .failure(let error): }