Refactor email downcase code in Users model.