Extract tag cloud min and max calculation to a method