factory undercoat question

All of the non-undercoated cars I've run across have a primered underside with varying degrees of overspray along the edges. The undercoating was added later either at the factory or at the dealer. I do not know at what point in the assembly process undercoating was added at the factory. I would think if there's undercoating on the rear axle or the drive shaft, it's probably a dealer job.