If operating a three-wheeled motorcycle or riding with a sidecar, do not ride too far to the right of your lane because:

Because a sidecar sits on the right side of a motorcycle, riding too far to the right side of your lane risks the sidecar running off the road. Similarly, on a three-wheeled motorcycle, the rear right wheel may leave the road if you get too close to the right edge.
DMV Writen Test