Function to remove any non-identical attributes from a group of cubes.