Remove and add gates to the gate attributes.