It's too obvious to put the motor in the bike. What they should do is embed electromagnets under the road surface to help accelerate certain bikes and decelerate others.

Not in the road, embed high frequency electromagnets in the fork and frame tuned to pull on steel spokes.

Aren't the frames mostly carbon fiber now?

Since many years.