Simplify the layer centroids example