refactor (component.line component.area) removing public event handler