Reformat trigger functions to improve readability.