[BUG] #43459 : removed duplicate code