avoid duplication in affiliate credits#create_affiliate_credits