extract sample library verifier into a trait