New shocks and old sins: economic adjustment in the age of automation and Brexit