Refactoring paypal ad