Refactoring in ant classes