Remove deprecated method calls and unused dependencies