Remove '.doc' bit from scope selectors.