bluetooth-samples: simplify discovery callback handler