Refactoring selection into a single model, created within the editor view