Break the body of this case into its own function.