Short ID based strategy - refactor common code for generating the DDL output