Some minor cleanup of the DistributionPlugin internals.