Dubious use of traits to make anything easily configurable. DB Factory as a result.