Refactor config bean using File