Massive refactoring: an event system to start reducing tight coupling