No need to call same function three times

Change-Id: I56f28326d9905648094bd2ecbe3a3afd6ace152a