Remove dependency on bci-middleware

This was only use for 2 helpers class for UDP/TCP sockets