The Role of Cluster Mass in the Multiple Populations of Galactic and Extragalactic Globular Clusters