Clean up logic a bit when getting search result table view cells