Externalizing and reusing validation scripts