BlackBerry to outsource handsets, will halt production