Remove some dependencies

This should not break anything, but I can't check fully.