Replace if-panic with must