It's not just legislation. Maintaining 20 mph via motor consumes disproportionate amount of power.
Few years ago I experimented with a dongle (fits on speed sensor, to reduce frequency of speed pulses, ie bike thinks its going slower)
Without it, I, d try and stick at 15.5 mph, drop lower, power...