Registration emails refactor