Refactor domain info xml to gem