Remove unnecessary assertions