Shrinking industries can still generate profit, and can still give out dividends.