def sharedConfigFactory(configId):
    """Implements "configFactory" as passed to createSchedule() by returning
    the given config ID. This is useful if a single configuration is shared by
    multiple schedules.
    """
    return lambda: {'configId': configId}