Extract a function that find item index from spine as a method