Remove unnecessary asserts.