Regardless of whether smoking is allowed in any other part of the airplane, lavatories must have self-contained, removable ashtrays located conspicuously on or near the entry side of each lavatory door, except that one ashtray may serve more than one lavatory door if the ashtray can be seen readily from the cabin side of each lavatory served
https://www.law.cornell.edu/cfr/text/14/25.853I don't think it's safe to generalize from this to a functional aspect of the plane. Removing the ashtrays serves no purpose, so there's no cost to letting it wait for a decade or two. Improving the aerodynamics does serve a purpose and might be done faster.