How to export option menu (and its functions) to my project?

Lyra is too complicated to me. I only want its option function. How should I extract it?