Refactor xml in spring