Flake8 cleanup; remove unused function.