Refactor dsm binding code in px4io.cpp

- Move repeated code into member function