Extract css attribute scrubbing to its own method.