Use a trait to deal with namespaces in service providers