Fixes duplicate calling add_constructor()

Remove duplicate code in template_format.py

Change-Id: Ia5b9a2d55a6f81cc370b5c8a4a94ceac77ff6ba8
Closes-Bug: #1267005
Merge "Fixes duplicate calling add_constructor()"