Factor out code to add additional parameters to tables