Simplify the already referred check

This simplifies the function by using AffiliateWP's was_referred() method of the tracking class. Aside from being simpler, this will also ensure better future compatibility if we modify how the tracking is done.