Structural motifs recurring in different folds recognize the same ligand fragments