added building of schema elements to factory