Cluster pins by location
Clean code