Factorize syntax checking for items (both drafts) and extends

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>