Remove some unnecessary type annotations.