I suspect a very limited, if any, connection. The anti-smoking lobby may have changed certain laws but, cigarettes are heavily targeted by shop-lifters. So, if stores can placate a segment of society while protecting profits, that is good business. Money and government mandates are likely the cause of your angst.
Safeway in Alaska moved cigarettes behind the counter to cut down on heavy loss from theft. I do not know if they sold fewer because of the move but, I was told that loss was greatly reduced, so the bottom line was enhanced. Cigarettes and meat being an attractive target for thieves, it makes sense. The number of beef cuts on display has also been severely reduced. If less sales is more than offset by reduced loss through theft does it not make sense to product the product from loss?
Also, many jurisdiction have mandated that cigarettes are out of sight, out of mind. Cigarettes must not only be behind the counter but, hidden from view. That's a government mandate not a company response. When tobacco products become unprofitable they will disappear completely from retailer's shelves.
Publicly traded companies do not react to social trends unless doing so will improve value. If social trends can be used to increase value and dividends okay. If not, stockholders and even privately owned companies are not going to sacrifice financial health in order to be trendy. There must be an economic incentive.
It is always the money! Successful companies do not make knee jerk or stupid mistakes. If they do they disappear. If a company can tie in a move which increases profits to a social trend so much the better.
We tobacco users are having less and less of a positive impact on profits. We are, in some areas, becoming too expensive to cater to. We are fast becoming a liability to the bottom line, not an asset. Specialty stores, liquor stores (booze and tobacco seem to go together), and internet sales are the way of the future.