Moving data providers to a trait