Removed unused label computation logic