Renderer events refactoring. Extract events mechanism to the another class.