PIM-1891 : refactor pager extension to move entity ids filtering part in
selector extension and isolate queries (count, get ids, fetch data)