Changed the methods that determine whether rebasing is necessary to be asynchronous. They can take a while, because they perform fetches, and they were blocking the main thread.