I wonder if you can get rid of that `paid_platforms` set on the line before this one if you follow my idea in my other comment ?