Factorize label management in a DotUtils module.