Can all 3 of these error messages be abstracted into a config object to be more DRY.