The solution for this is to improve biking infrastructure.
I doubt that. Across the street of our small organic shop around the corner is a bike parking spot. Still, I recently fall over a bike parked directly in front of the door of said shop. Bike people are lazy more often then not.
Not only that.
Copenhagen is littered with electric hire bikes, very often just a few steps from a bike rack with empty spaces.
Only one of the companies makes users photograph the bike to show it's been returned to a suitable spot.