Defy a code of practice