Make parse functions reusable outside of opt parser