Abstract ads out of main code.