Split FileLoader to a separate file