Refactor devise initializer.