 After the treaty, the Hudson Bay Company rebuilt York Factory as a brick star fort at the mouth of the nearby Hayes River, its present location.The United States government sanctioned a factory system from 1796 to 1822, with factories scattered through the mostly territorial portion of the country.The factories were officially intended to protect Indians from exploitation through a series of legislation called the Indian Intercourse Acts.