Refactor Masterclass Ads Controller