Extract event handler into dedicated fn