richtext: dependencies cleanup