How to remove speedo drive gear?

Looks like the keeper was removed ( or it wasn't there ). The assembly should pull straight out.
It is eccentric and rotates to different positions for different diameter gears. mark it before removal.