remove another duplicate piece of code

Change-Id: I90bbd362f8d3d5cf9adb0fe7ae990384c2339b18