Extract tag_cloud generation into its own method