Move schema definitions to class.