[Olena-patches] cleanup-2008 2842: Update labeling routines to modern conventions.