Factorize common AbstractSchema code.