A janky remove listener as you can't compare functions.