Simplify exercise_handler to pass only needed info.