Delete remaining backtrace if there are no more lines to modify
Include nested steps in output of legacy features.