Merge "Replacing duplicated code with get_scan_and_band call."