Removed repeated function calls.

Change-Id: If31c0cc26fdc2709b43172ed62562df680f0e6f7
Merge "Removed repeated function calls."