Use 'devtools:::use_rcpp' if possible; rearrange code