Convert annotations and samples to classes as well.