We could use the visitor pattern to avoid dispatching the coap request building in each class. What do you think ?