Remove useless actions.