I love working on stuff like these. We can study the code together and come up with ways to implement design patterns (functional, object oriented or meta programming) that are optimal for your codebase. We can also compare it to other patterns and see which one's ideal for your case. Also, If it doesn't exist already, we can consider writing a test suit to go along with the rest of the code.
Please reach out to me via chat and I'll be more than happy to assist you with this project.