Move code from nordic.c into three destinct targets.