Condense logic for bite code duplicate checking