Rewrite stack trace slicing for clarity.