Reformat code snippet