Private companies, such as Dick's Sporting Goods and Walmart, have decided that selling controversial assault weapons is bad for business.