They are the same and indeed the parts could be swapped, with the exception that the S40 requires disc brakes. There might be some redo of cabling as well since the riders poison and the location of the boom/slider will likely be different on each bike even with the same rider.
Robert