Replace LoaderFactory by HierchicalDataFile to read masks and list of
mask names.