Refactoring to Improve Testability: Removing Unnecessary Dependencies