remove unnecessary factory