Move some code to nsbbuiltins