Decreasing cyclomatic complexity in pico_tcp.c (part 3)