Refactoring code in eclipse