DRYing up the form