Remove unwanted optional dependencies from tp