As Datatek said, leaving the ECU in place is the easiest way out - not saying the whole conversion is going to be exactly a walk in the park.
For starters, the 300Tdi being a direct injection engine gives it an edge in terms of efficiency over the BMW unit which is an indirect injection engine...