ListViewController: extract index decision to its own method