Extract duplicate logic to fetch a search parameter into `BaseView.prototype.searchParam`