In the 1820s, President Andrew Jackson had started steering these lucrative contracts to friends.