Remove unnecessary assertions.