Reorganising into a hierarchy