In order to wait for text to not be present in element you can use expected conditions instead of using Thread.sleep().

You can find expected conditions in file: CommonExpectedConditions.java
And all waits are defined in BasePageObject.java