Refactor to move template config data out to a separate file