Refactoring a monolithic Framework for composer usage