def convert_datastores_to_hubs(pbm_client_factory, datastores):
    """Convert Datastore morefs to PbmPlacementHub morefs.

    :param pbm_client_factory: pbm client factory
    :param datastores: list of datastore morefs
    :returns: list of PbmPlacementHub morefs
    """
    hubs = []
    for ds in datastores:
        hub = pbm_client_factory.create('ns0:PbmPlacementHub')
        hub.hubId = ds.value
        hub.hubType = 'Datastore'
        hubs.append(hub)
    return hubs