Remove custom events for now.
Replace custom selector code with core-selector.