Code Refactoring Tools: When to Automate vs Manual