Scenarios refactoring.