Refactor user registration to domain command