DRYing up the management command