Factor out confirmation prompt into decorator.