Refactor `GenericImportEvent.validate_main_file` and callers
grab udfs