Welcome to the world of professional programming. Situation normal at many many companies.
The best advice I can give is DO NOT start a stop the world rewrite! and to look at the SOLID pattern and implement it using the STABLE strategy.
-Smell your code -Tiny changes first -Augment your tests -Back up -Leave it better than you found it -Expect good reasons
Full credit to Sarah Mei
https://markheath.net/post/stable-tactics-for-writing-solid-...