Refactor EPP code to EppDomain