Convert if-blocks to return statements in small functions such as GetStartParameter().