Enhancement: Refactored to get selectionModel into a variable - deduplicating