Small step in removing duplication between the two examples