Convert the resulting tile into a featureset_ptr

Also move some stuff to variables