Move vector loader to library.