Cleanup unused dependencies and TS EventController refactoring.