Novartis group general counsel Felix Ehrat will step down from the company after taking personal responsibility for a $1.2 million contract with President Donald Trump’s personal lawyer Michael Cohen, an agreement he admits was an “error.”

Ehrat, who has has been group GC of the pharmaceutical giant since 2011, will retire in June, the company said Wednesday. He will be replaced by chief ethics, risk and compliance officer Shannon Thyme Klinger.