Remove centroid function. Obsolete.