Made the face tree creator a free function.