Describe a time you had to refactor a monolithic embedded application into a modular, object-oriented architecture.