Autorefactorin of code