Revert "TICS: try to reduce complexity for pico_protocol.h to 0."

This reverts commit afaceb6309b9810d15e15fa9796f0cb0b75192bf.
Revert "Second try to decrease complexity in pico_protocol.c"

This reverts commit 84d1a21b4da5429e3f925c1768e4e5923b88cd08.