I found a solution for including a gear limiter in the original gear box. It's definitely not the most elegant solution, but I had to make do with the few spare parts that I had lying around. I used the following parts:
I also used a 1L pin connector. Hopefully it will be clear from the pictures below what you need to change. If not, let me know.