When smoking tenants move out, I scrub walls, scrub carpets, paint and do whatever needs done anyways.
To remove the smoke smell I put my ozone air cleaner thing in the apartment, but only after I employ the secret stink remover method.
I take bowls, set them in each room, and divide a gallon of ammonia between the bowls.
I close the place up and let it sit for a week. The ammonia evaporates and there's no smell left whatsoever. Works like a champ.