Revert "Extract helper method and introduce method to get data frame from scan.ex."

This reverts commit 5e55f3ee3b4bf2c1615370735d1002f330091a31.