refactor the way to set flyway java object properties