Move clean_title to base thread class