DRYing up COPY command creation