Share code between setDataDelyed and remvoeDelayed.

Because sharing is good.