clear_learned_sourcetypes added to do just what it says