def normalize_launch_config(config):
    """
    Normalize the metadata argument as part of the server arg in the launch
    config - if it is null or invalid, just remove it.
    """
    server_info = config.get('args', {}).get('server', {})

    if server_info.get('metadata') is None:
        server_info.pop('metadata', None)

    return config