Fix factory namespace.