Factor out templating That will make it easier to add more template variables. Change-Id: Ib66c94b83c404aae4d56bbbc2e95101c296ebb1d Signed-off-by: Patrick Georgi <pgeorgi@google.com>