distance (oneself) from (someone or something)
To limit engagement or association (or the appearance thereof) between oneself and someone or something. Politicians have been quick to distance themselves from the senator ever since news of her drug scandal broke. The company, trying to build up its environmentally-friendly image, has been distancing itself from its past connections to the oil industry.