Mechanism of resistance of dicloxacillin is: