Remove redundant nonlocal statement.