Add config factory.