Bash: exract pager handling to component.