Fix package for factory method