Remove unnecessary factory.