Extract tag_clustering in own file