Refactor Devise secret setup