Create a table defaults section to allow multiple tables to have the same default values

And refactor duplicated code