Removing some handleValidationError duplication