Improve organization of crawler motor driver code.