Place the tube right side up with the lid on in a tub of boiling water that has cooled down a little, wait for it to melt and run down, then cut the bottom off and tip the remaining into a little contain with a lid.
You can buy little screw top containers in craft stores to store the rest of the product. It will set again when it cools down.