Add a Barycentre function for DegreesOfFreedom and use it to simplify the transforms.

Done.