Remove unnecessary type-check.