Input (grade 6): It was the custom to bake white biscuits and paint them as window decorations.
Output (grade 7): The custom was to bake white biscuits and paint them as window decorations.