Remove unnecessary type annotations.