ant refactor