Use ElementInterface::getLabel() instead of custom code