srt: Factor out a goto statement