A motorcyclist can discourage other vehicles from lane sharing by:

Any time a driver may be tempted to try to squeeze into your lane next to you, ride in the center portion of the lane to discourage them from doing so.
DMV Writen Test