Factory to static method.