Devise refactored.