Both the robot and the base station had a lot of code that was identical, like data structs, constants, radio library etc. The chosen solution was to extract all shared code into a static library and link the station and robot against it.