Refactor mavlink serialport connection instantiation