extract a nested relation loader