Remove all unnecessary checkouts.