Code deduplication between fairly similar skydrive/boxdotnet backends