Traits for code completion in factory classes