Tidy up the code of mapView:viewForAnnotation: