The cocking piece is removed by driving out its retaining pin. The guide lug is the large end of this pin. This is not really intended to be removed.
If you pull back the cocking piece, you will see a slotted collar threaded into the front portion of the bolt. Make a dogleg spanner to unscrew this.