improve Ruling.clean_rulings