Remove unnecessary factory method.

Make constructor public.