Refactor out scrollToResult().